package com.bkhech.satoken.controller;

import cn.dev33.satoken.util.SaResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 为路由拦截鉴权准备的路示例
 *
 * @author guowm
 * @date 2023/8/9
 */
@RestController
public class RouterCheckController {

    // 路由拦截鉴权测试
    @RequestMapping({
            "/user/doLogin2", "/user/info", "/admin/info"
    })
    public SaResult checkLogin() {
        return SaResult.ok();
    }

}
